// This file was decompiled using VCSCM.ini published on 2021-01-30
{$CLEO .cs}

03A4: script_name 'slot' 
0000: NOP 

0001: wait 3000 ms          

//0055: put_player $PLAYER_CHAR at -901.7905 -1240.6953 11.0
//0055: put_player $PLAYER_CHAR at -1172.03 -52.7652 26.8619



  
//0055: put_player $PLAYER_CHAR at -729.549 -1171.4713 10.2 
:Noname_2
0001: wait 0 ms  
00D6: if 
0256:   player 0 defined 
004D: jump_if_false @Noname_2


    0001: wait 100 ms 
    00D6: if 
    0038:   $onmission == 0 // $ == int 
    004D: jump_if_false @Noname_2 
    
    00D6: if or
    00F6:   player $player_char 0 -890.301 -1245.1392 11.0 radius 5.0 5.0 5.0 
    00F7:   player $player_char sphere 0 near_point_in_car -890.301 -1245.1392 11.0 radius 5.0 5.0 5.0 
    004D: jump_if_false @Noname_2 
        
         
    00D6: if 
    00E0:   player $player_char in_any_car 
    004D: jump_if_false @Noname_2 
                               
    03C0: 4@ = actor $player_actor car_no_save 
        
    0001: wait 0 ms 
    00D6: if or
    0137:   car 4@ model == 6101
    0137:   car 4@ model == 142
    004D: jump_if_false @Noname_2 
    
    
    00BC: text_highpriority 'lwrdr1' time 2000 1
 
    00D6: if 
    00E1: player 0 pressed_button 4
    then
        0001: wait 0 ms
        
         00BC: text_highpriority 'empty' time 200 1
        
        
        
        015F: set_camera_position -893.7862 -1235.2136 15.53 rotation 0.0 0.0 0.0
        0160: point_camera -890.301 -1245.1392 11.0 switchstyle 2
                      
        0001: wait 1000 ms 
        041E: set_radio_station 6 18000
        020A: set_car 4@ door_status_to 4
        0004: $onmission = 1 // $ = int

        0006: 7@ = 0 // @ = int
        0006: 9@ = 0 // @ = int
        0006: 10@ = 0 // @ = int  
        
        05E5: 0@ = game_version 
        00D6: if 
        0039:   0@ == 0 // @ == int 
        004D: jump_if_false @BLCKJ_244 
        05E0: 1@ = read_memory 10176736 size 4 virtual_protect 1 
        05E0: 2@ = read_memory 10176732 size 4 virtual_protect 1 
        0002: jump @BLCKJ_333 
        
        :BLCKJ_244
        0001: wait 0 ms 
        00D6: if 
        0039:   0@ == 1 // @ == int 
        004D: jump_if_false @BLCKJ_301 
        05E0: 1@ = read_memory 9712076 size 4 virtual_protect 1 
        05E0: 2@ = read_memory 9712072 size 4 virtual_protect 1 
        0002: jump @BLCKJ_333 
        
        :BLCKJ_301
        0001: wait 0 ms 
        05E0: 1@ = read_memory 10172648 size 4 virtual_protect 1 
        05E0: 2@ = read_memory 10172644 size 4 virtual_protect 1 
        
        :BLCKJ_333
        0001: wait 0 ms 
        0004: TIMERA = 1@ // $ = int 
        0004: TIMERB = 2@ // $ = int 
        008D: 15@ = integer_to_float TIMERB 
        008D: 14@ = integer_to_float TIMERA 
        008D: 13@ = integer_to_float TIMERA 
        008D: 12@ = integer_to_float TIMERB 
        008D: TIMERA = integer_to_float TIMERA 
        008D: TIMERB = integer_to_float TIMERB 
        008D: 2@ = integer_to_float 2@ 
        008D: 1@ = integer_to_float 1@ 
        0015: 14@ /= 12.0 // $ /= float 
        0063: 13@ -= 14@ // @ -= @ float 
        0063: 13@ -= 14@ // @ -= @ float 
        0063: 13@ -= 14@ // @ -= @ float 
        0015: 12@ /= 2.0 // $ /= float 
    
    
        0109: player $PLAYER_CHAR money += -10
        //01B4: set_player $PLAYER_CHAR can_move 0

       
        03F0: enable_text_draw 1 
        0390: load_txd_dictionary 'lowRdr'
        
        
        
        //0209: 1@ = random_int_in_ranges 1 4
        
        
        038F: load_texture 'up' as 7    
            wait 0
        038F: load_texture 'down' as 8    
            wait 0
        038F: load_texture 'left' as 3    
            wait 0
        038F: load_texture 'right' as 4 
       
        038F: load_texture 'correct' as 5
        038F: load_texture 'false' as 6
                                         
            wait 0
        038F: load_texture 'empty' as 9 
        0007: 0@ = 3.0 // @ = float

        while true 
            :ttt
            wait 0
            if
                00E1:   player 0 pressed_button 13  // camera key
            then
                03F0: enable_text_draw 0
                break
            end
            //1@, 15@, 11@, 10@, 9@, 8@, 7@, 6@, 5@, 4@, 3@
            
            
            045A: text_draw_1number 100.0 50.0 'lwrdr2' 7@  
            
            
            00D6: if 
            8039:  not 9@ == 0 // @ == int // float > @
            then
                
                00D6: if 
                0019:   9@ > 0 // @ > int
                then
                    038D: draw_texture 5 position 12@ 13@ size 14@ 14@ RGBA 255 255 255 255
                    000E: 9@ -= 1 // @ -= int
                else
                    038D: draw_texture 6 position 12@ 13@ size 14@ 14@ RGBA 255 255 255 255
                    000A: 9@ += 1 // @ += int
                end
            else 
            038D: draw_texture 9 position 12@ 13@ size 14@ 14@ RGBA 255 255 255 255
            end
            0063: 2@ -= 0@ // @ -= float
                  
             
            005B: 2@ += 14@ // @ += @ float 
            005B: 2@ += 14@ // @ += @ float 
            
            00D6: if
            001B:   1 > 10@ // int > @
            then
                038D: draw_texture 4 position 2@ 13@ size 14@ 14@ RGBA 255 255 255 255
            end
            00D6: if 
            0039:   10@ == 0 // @ == int
            then
                0006: 11@ = 4 // @ = int
                0050: gosub @arrowCheck
            end
              
            005B: 2@ += 14@ // @ += @ float 
            005B: 2@ += 14@ // @ += @ float
            00D6: if
            001B:   2 > 10@ // int > @
            then 
                038D: draw_texture 8 position 2@ 13@ size 14@ 14@ RGBA 255 255 255 255
            end
            00D6: if 
            0039:   10@ == 1 // @ == int
            then
                0006: 11@ = 2 // @ = int
                0050: gosub @arrowCheck
            end
            
            005B: 2@ += 14@ // @ += @ float 
            005B: 2@ += 14@ // @ += @ float
            00D6: if
            001B:   3 > 10@ // int > @
            then   
                038D: draw_texture 7 position 2@ 13@ size 14@ 14@ RGBA 255 255 255 255
            end
            00D6: if 
            0039:   10@ == 2 // @ == int
            then 
                0006: 11@ = 1 // @ = int
                0050: gosub @arrowCheck
            end
            
            005B: 2@ += 14@ // @ += @ float 
            005B: 2@ += 14@ // @ += @ float
            00D6: if
            001B:   4 > 10@ // int > @
            then  
                 038D: draw_texture 3 position 2@ 13@ size 14@ 14@ RGBA 255 255 255 255
            end  
            00D6: if 
            0039:   10@ == 3 // @ == int
            then   
                0006: 11@ = 3 // @ = int
                0050: gosub @arrowCheck
            end  
            
            005B: 2@ += 14@ // @ += @ float 
            005B: 2@ += 14@ // @ += @ float 
            00D6: if
            001B:   5 > 10@ // int > @
            then 
                038D: draw_texture 4 position 2@ 13@ size 14@ 14@ RGBA 255 255 255 255   
            end
            00D6: if 
            0039:   10@ == 4 // @ == int
            then    
                0006: 11@ = 4 // @ = int
                0050: gosub @arrowCheck
            end
            
            005B: 2@ += 14@ // @ += @ float 
            005B: 2@ += 14@ // @ += @ float 
             00D6: if
            001B:   6 > 10@ // int > @
            then 
                038D: draw_texture 3 position 2@ 13@ size 14@ 14@ RGBA 255 255 255 255  
            end
            00D6: if 
            0039:   10@ == 5 // @ == int
            then     
                0006: 11@ = 3 // @ = int
                0050: gosub @arrowCheck
            end
            
            005B: 2@ += 14@ // @ += @ float 
            005B: 2@ += 14@ // @ += @ float
            00D6: if
            001B:   7 > 10@ // int > @
            then  
                038D: draw_texture 7 position 2@ 13@ size 14@ 14@ RGBA 255 255 255 255     
            end
            00D6: if 
            0039:   10@ == 6 // @ == int
            then     
                0006: 11@ = 1 // @ = int
                0050: gosub @arrowCheck
            end
            
            005B: 2@ += 14@ // @ += @ float 
            005B: 2@ += 14@ // @ += @ float   
            00D6: if
            001B:   8 > 10@ // int > @
            then  
                038D: draw_texture 8 position 2@ 13@ size 14@ 14@ RGBA 255 255 255 255      
            end
            00D6: if 
            0039:   10@ == 7 // @ == int
            then      
                0006: 11@ = 2 // @ = int
                0050: gosub @arrowCheck
            end
            
            005B: 2@ += 14@ // @ += @ float 
            005B: 2@ += 14@ // @ += @ float   
            00D6: if
            001B:   9 > 10@ // int > @
            then  
                038D: draw_texture 4 position 2@ 13@ size 14@ 14@ RGBA 255 255 255 255 
            end
            00D6: if 
            0039:   10@ == 8 // @ == int
            then      
                0006: 11@ = 4 // @ = int
                0050: gosub @arrowCheck
            end
            
            005B: 2@ += 14@ // @ += @ float 
            005B: 2@ += 14@ // @ += @ float   
            00D6: if
            001B:   10 > 10@ // int > @
            then  
                038D: draw_texture 3 position 2@ 13@ size 14@ 14@ RGBA 255 255 255 255      
            end
            00D6: if 
            0039:   10@ == 9 // @ == int
            then       
                0006: 11@ = 3 // @ = int
                0050: gosub @arrowCheck
            end
            
            
            005B: 2@ += 14@ // @ += @ float 
            005B: 2@ += 14@ // @ += @ float  
            00D6: if
            001B:   11 > 10@ // int > @
            then    
                038D: draw_texture 7 position 2@ 13@ size 14@ 14@ RGBA 255 255 255 255
            end
            00D6: if 
            0039:   10@ == 10 // @ == int
            then          
                0006: 11@ = 1 // @ = int
                0050: gosub @arrowCheck
            end
            
            005B: 2@ += 14@ // @ += @ float 
            005B: 2@ += 14@ // @ += @ float  
            00D6: if
            001B:   12 > 10@ // int > @
            then    
                038D: draw_texture 3 position 2@ 13@ size 14@ 14@ RGBA 255 255 255 255 
            end
            00D6: if 
            0039:   10@ == 11 // @ == int
            then        
                0006: 11@ = 3 // @ = int
                0050: gosub @arrowCheck
            end
            
            
            005B: 2@ += 14@ // @ += @ float 
            005B: 2@ += 14@ // @ += @ float   
            00D6: if
            001B:   13 > 10@ // int > @
            then  
                038D: draw_texture 8 position 2@ 13@ size 14@ 14@ RGBA 255 255 255 255   
            end
            00D6: if 
            0039:   10@ == 12 // @ == int
            then      
                0006: 11@ = 2 // @ = int
                0050: gosub @arrowCheck
            end
            
            
            005B: 2@ += 14@ // @ += @ float 
            005B: 2@ += 14@ // @ += @ float   
            00D6: if
            001B:   14 > 10@ // int > @
            then  
                038D: draw_texture 4 position 2@ 13@ size 14@ 14@ RGBA 255 255 255 255  
            end
            00D6: if 
            0039:   10@ == 13 // @ == int
            then        
                0006: 11@ = 4 // @ = int
                0050: gosub @arrowCheck
            end
            
            005B: 2@ += 14@ // @ += @ float 
            005B: 2@ += 14@ // @ += @ float  
            00D6: if
            001B:   15 > 10@ // int > @
            then  
                038D: draw_texture 7 position 2@ 13@ size 14@ 14@ RGBA 255 255 255 255   
            end
            00D6: if 
            0039:   10@ == 14 // @ == int
            then        
                0006: 11@ = 1 // @ = int
                0050: gosub @arrowCheck
            end
            
            
            00D6: if or
            00E1:   player 0 pressed_button 16 
            00E1:   player 0 pressed_button 14
            then   
                015A: restore_camera
                00BC: text_highpriority 'lwrdr5' time 2000 1
                0004: $onmission = 0 // $ = int  
                03C0: 4@ = actor $player_actor car_no_save 
                020A: set_car 4@ door_status_to 1 
                wait 3000
                0002: jump @Noname_2
            end
            
            00D6: if 
            00E1:   player 0 pressed_button 4 
            then 
                015A: restore_camera 
                00BC: text_highpriority 'lwrdr6' time 2000 1
                0004: $onmission = 0 // $ = int 
                03C0: 4@ = actor $player_actor car_no_save 
                020A: set_car 4@ door_status_to 1     
                wait 3000
                0002: jump @Noname_2
            end                     
            
            00D6: if 
            0023:   0.0 > 2@ // float > @
            then
                0087: 2@ = 12@ // @ = @ float   
                0013: 2@ *= 2.0  
                0006: 10@ = 0 // @ = int 
                000B: 0@ += 1.0 // @ += float
                
                00D6: if 
                0023:   6.0 > 0@ // float > @
                then   
                    0002: jump @ttt
                end
                
                015A: restore_camera
                00D6: if 
                001B:   400 > 7@ // int > @
                then  
                    00BC: text_highpriority 'lwrdr3' time 2000 1 
                    0004: $onmission = 0 // $ = int 
                    03C0: 4@ = actor $player_actor car_no_save 
                    020A: set_car 4@ door_status_to 1 
                    wait 3000
                    0002: jump @Noname_2
                end
                00BC: text_highpriority 'lwrdr4' time 2000 1
                0247: request_model 6163
                
                :CHOLOS_168
                0001: wait 0 ms    
                00D6: if 
                0248:   model 6163 available 
                004D: jump_if_false @CHOLOS_168 
                  
                00A5: 0@ = create_car 6163 at -904.3958 -1234.3168 11.0 
                01C3: mark_car_as_no_longer_needed 0@   
                0249: release_model 6163         
                03C0: 4@ = actor $player_actor car_no_save 
                020A: set_car 4@ door_status_to 1 
                0004: $onmission = 0 // $ = int 
                wait 30000
                0002: jump @Noname_2
            end
            
            
            
            
            
            
            
            
            0063: 2@ -= 14@ // @ -= @ float 
            0063: 2@ -= 14@ // @ -= @ float 
            
            0063: 2@ -= 14@ // @ -= @ float 
            0063: 2@ -= 14@ // @ -= @ float 
            
            0063: 2@ -= 14@ // @ -= @ float 
            0063: 2@ -= 14@ // @ -= @ float 
            
            0063: 2@ -= 14@ // @ -= @ float 
            0063: 2@ -= 14@ // @ -= @ float 
            
            0063: 2@ -= 14@ // @ -= @ float 
            0063: 2@ -= 14@ // @ -= @ float
             
            0063: 2@ -= 14@ // @ -= @ float 
            0063: 2@ -= 14@ // @ -= @ float
            
            
            0063: 2@ -= 14@ // @ -= @ float 
            0063: 2@ -= 14@ // @ -= @ float
            
            0063: 2@ -= 14@ // @ -= @ float 
            0063: 2@ -= 14@ // @ -= @ float
            
            0063: 2@ -= 14@ // @ -= @ float 
            0063: 2@ -= 14@ // @ -= @ float
            
            0063: 2@ -= 14@ // @ -= @ float 
            0063: 2@ -= 14@ // @ -= @ float
            
            0063: 2@ -= 14@ // @ -= @ float 
            0063: 2@ -= 14@ // @ -= @ float
            
            0063: 2@ -= 14@ // @ -= @ float 
            0063: 2@ -= 14@ // @ -= @ float
            
            0063: 2@ -= 14@ // @ -= @ float 
            0063: 2@ -= 14@ // @ -= @ float
            
            0063: 2@ -= 14@ // @ -= @ float 
            0063: 2@ -= 14@ // @ -= @ float 
            
            0063: 2@ -= 14@ // @ -= @ float 
            0063: 2@ -= 14@ // @ -= @ float
        end
        
        
        03F0: enable_text_draw 0  
        0391: release_textures
       // 01B4: set_player $PLAYER_CHAR can_move 1
    end

  

0002: jump @Noname_2



:arrowCheck

            //045A: text_draw_1number 130.0 50.0 'NUMBER' 10@ 
           // 045A: text_draw_1number 140.0 50.0 'NUMBER' 11@ 
00D6: if
8039: not  9@ == 0 // @ == int 
then
0051: return
end

0087: 8@ = 12@ // @ = @ float
000F: 8@ -= 151.0 // @ -= float
00D6: if 
0025: 2@ > 8@ 
then
    
    0494: get_joystick 0 data_to 1@ 4@ 5@ 6@
    00D6: if and
    0039:  5@ == 0 // @ == int
    0039:  6@ == 0 // @ == int
    then
        0051: return
    end
    
    00D6: if or
    8039:  not 5@ == 0 // @ == int
    8039:  not 6@ == 0 // @ == int
    then
        0087: 8@ = 12@ // @ = @ float
        000B: 8@ += 30.0 // @ += float
        00D6: if 
        0025: 8@ > 2@ 
        then 
            0087: 8@ = 12@ // @ = @ float
            000F: 8@ -= 30.0  // @ -= float
            00D6: if 
            8025: not 2@ > 8@  
            then  
                0006: 9@ = -12 // @ = int 
                000A: 10@ += 1 // @ += int  
                0051: return       
            end         
        else 
            0006: 9@ = -12 // @ = int
            000A: 10@ += 1 // @ += int    
            0051: return      
        end 
    end
    
    
    00D6: if 
    0039:   11@ == 1 // @ == int
    then 
        00D6: if
        0019:   6@ > 1 // @ > int 
        then
            000A: 7@ += 10 // @ += int   
            0006: 9@ = 12  // @ = int 
        else
            0006: 9@ = -12 // @ = int
        end 
        000A: 10@ += 1 // @ += int
    end
    
    00D6: if 
    0039:   11@ == 2 // @ == int
    then 
        00D6: if
        001B:   -1 > 6@ // int > @
        then
            000A: 7@ += 10 // @ += int   
            0006: 9@ = 12  // @ = int 
        else
            0006: 9@ = -12 // @ = int
        end 
        000A: 10@ += 1 // @ += int
    end 
    
    00D6: if 
    0039:   11@ == 3 // @ == int
    then  
        00D6: if
        001B:   -1 > 5@ // int > @
        then
            000A: 7@ += 10 // @ += int   
            0006: 9@ = 12  // @ = int 
        else
            0006: 9@ = -12 // @ = int
        end 
        000A: 10@ += 1 // @ += int
    end 
    
    00D6: if 
    0039:   11@ == 4 // @ == int
    then  
        00D6: if
        0019:   5@ > 1 // @ > int 
        then
            000A: 7@ += 10 // @ += int   
            0006: 9@ = 12  // @ = int 
        else
            0006: 9@ = -12 // @ = int
        end 
        000A: 10@ += 1 // @ += int
    end 
else
    000A: 10@ += 1 // @ += int
end


  
0051: return
